package com.wkn.wknAdmin.result;

import lombok.Getter;

/**
 * @Title:
 * @Description: 响应码枚举
 * @Author: WKN
 * CreateDate: 2022/7/25 10:14
 */

@Getter
public enum ResultCode {

    //1000系列通用错误
    SUCCESS(1000, "操作成功"),
    FAILED(1001, "操作失败"),
    VALIDATE_FAILED(1001, "参数校验失败"),
    ERROR(1001, "未知错误"),
    NO_TOKEN(1001, "没有token，请重新登录"),
    TOKEN_IS_INVALID(1001, "token验证失效"),
    USER_NOT_EXIST(1001, "用户不存在"),
    TOKEN_FAILED(1001, "token验证失败，请重新登录");


    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
